Skip to content

[stable31] fix(comments): mark comments as read and dismiss notifications in Activity sidebar #60621

Open
miaulalala wants to merge 1 commit into
stable31from
backport/60617/stable31
Open

[stable31] fix(comments): mark comments as read and dismiss notifications in Activity sidebar #60621
miaulalala wants to merge 1 commit into
stable31from
backport/60617/stable31

Conversation

@miaulalala
Copy link
Copy Markdown
Contributor

Backport of #60617 to stable31.

Summary

  • When the Activity app integration is active, comments load in the Activity sidebar instead of the Comments tab
  • markCommentsAsRead() and mention notification dismissal were never called in this code path
  • This left the unread bubble (💬) in the file list and kept mention notifications active
  • Adds a new DELETE /notifications/{id} endpoint to dismiss individual mention notifications by comment ID

Test plan

  • Enable the Activity app
  • Have another user mention you in a file comment
  • Open the file's Activity sidebar — the unread bubble should disappear after viewing
  • Check that the mention notification is dismissed

🤖 Generated with Claude Code

@miaulalala miaulalala changed the title fix(comments): mark comments as read and dismiss notifications in Activity sidebar [stable31] [stable31] fix(comments): mark comments as read and dismiss notifications in Activity sidebar May 20, 2026
@miaulalala miaulalala requested a review from janepie May 20, 2026 16:25
@miaulalala miaulalala self-assigned this May 20, 2026
@miaulalala miaulalala requested review from a team, Altahrim, ArtificialOwl, provokateurin and salmart-dev and removed request for a team May 20, 2026 16:33
@miaulalala miaulalala force-pushed the backport/60617/stable31 branch from 0b26bd8 to 6b1affb Compare May 20, 2026 21:45
…hen viewed in activity sidebar

Backport of #60617 for stable31.

When comments are loaded via the Activity sidebar integration, call
markCommentsAsRead() so the file-row unread comment bubble clears after
viewing. Also add a DELETE /notifications/{id} endpoint and call it for
each comment that mentions the current user so the notification bell
clears without navigating via the notification link.

Fixes: nextcloud/activity#2531

AI-Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Anna Larch <anna@nextcloud.com>
@janepie janepie force-pushed the backport/60617/stable31 branch from 6b1affb to f8640a5 Compare May 21, 2026 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants